package cn.wolfcode.crm.domain;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;
import java.util.Map;

public class SystemDictionary {
    private Long id;

    private String sn;

    private String title;

    private String intro;
    Map<String,Object> hashMap = new HashMap<>();
    public String getJson(){
        hashMap.put("id",id);
        hashMap.put("title",title);
        hashMap.put("sn",sn);
        hashMap.put("intro",intro);
        // 使用 fastJson 将 json 格式的数据转成 String
        return JSON.toJSONString(hashMap);
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

}